import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import login from '../views/login.vue'
import yong from '../views/yong.vue'
import yong1 from '../views/yong1.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: login
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/yong',
    name: 'yong',
    component: yong,
    children:[
      {
        path: '/',
        name: 'yong1',
        component: yong1
      },{
        path: '/yong1',
        name: 'yong1',
        component: yong1
      },
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
